package com.piece.module.spider.context;

import lombok.Data;

/**
 * WebSocket事件
 */
@Data
public class SpiderWebSocketEvent<T> {

	private String eventType;

	private String timestamp;

	private T message;

	public SpiderWebSocketEvent(String eventType, T message) {
		this.eventType = eventType;
		this.message = message;
	}

	public SpiderWebSocketEvent(String eventType, String timestamp, T message) {
		this.eventType = eventType;
		this.timestamp = timestamp;
		this.message = message;
	}
}
